package cn.catfish.service;

import cn.catfish.entity.Book;
import cn.catfish.entity.User;

import java.util.List;

public interface BookService {
    List<Book> findAllBooks();
    Book getBookById(int id);
    Book getBookName(String title);
    boolean borrowBook(User user, Book book);
   boolean returnBook(int userid, int id, long overdueDays);
    boolean addBook(Book book);
    void updateBook(Book book);
}
